/**
 * Notes: 样品实体
 * Date: 2024-03-11
 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat)
 */

const BaseProjectModel = require('./base_project_model.js');

class SampleModel extends BaseProjectModel {

}

// 集合名
SampleModel.CL = BaseProjectModel.C('oa_sample');

SampleModel.DB_STRUCTURE = {
    _pid: 'string|true',
    SAMPLE_ID: 'string|true',
    
    SAMPLE_CODE: 'string|true|comment=存样编号',
    SAMPLE_NAME: 'string|true|comment=样品名称',
    SAMPLE_VERSION: 'string|false|comment=型号',
    SAMPLE_PROJECT_ID: 'string|false|comment=关联项目ID',
    SAMPLE_STATUS: 'int|true|default=1|comment=阶段：1=调试中, 2=试产中, 3=大货中',
    SAMPLE_LOCATION: 'string|false|comment=当前位置',
    
    SAMPLE_MAKE_USER_ID: 'string|false|comment=工程师',
    SAMPLE_MAKE_START_TIME: 'int|false|comment=存样时间',
    
    SAMPLE_CUSTOMER: 'string|false|comment=客户',
    
    SAMPLE_NOTES: 'string|false|comment=详细说明',
    SAMPLE_ATTACHMENTS: 'array|true|default=[]|comment=样品图片',
    
    createTime: 'int|true',
    updateTime: 'int|true',
    SAMPLE_EDIT_ADMIN_ID: 'string|false|comment=最近修改的管理员',
    SAMPLE_EDIT_ADMIN_NAME: 'string|false|comment=最近修改的管理员姓名',
    SAMPLE_EDIT_ADMIN_TIME: 'int|false|comment=最近修改的时间'
};

module.exports = SampleModel; 